// 引包
var mongoose = require("mongoose");
var db = require("./db");
var ObjectID = require("mongodb").ObjectID;

// 创建了一个 Schema 结构
var logSchema = new mongoose.Schema({
    status: Number,  // 状态码
    user: String,  // 用户
    msg: String,  // 信息
    time: String,  // 时间
});

var logModel = db.model("Log", logSchema);
module.exports = logModel;
